package com.fowo.api.model.product.set.detail;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 产品生命周期设置详情 导入导出辅助模型 */
@Getter
@Setter
public class ProductSetDetailExcelPo {

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "所属产品生命周期设置")
  private String parentProductSetName;

  @ExcelIgnore
  @ExcelProperty(value = "所属产品生命周期设置")
  private Long parentProductSet;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "表达式关系")
  private String expressRelation;

  @NotBlank(message = "字段不能为空")
  @Size(max = 50, message = "字段长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*字段")
  private String field;

  @NotBlank(message = "表达式不能为空")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*表达式")
  private String express;

  @Size(max = 50, message = "数值长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "数值")
  private String text;

  @Size(max = 50, message = "结束数值长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "结束数值")
  private String textEnd;
}
